package com.magicstone.common.WatchPoint;

import java.lang.annotation.*;

@Target(ElementType.METHOD)
@Retention(RetentionPolicy.RUNTIME)
public @interface Descriptor {
	enum OperationType{
		CREATE(1), READ(4), UPDATE(3), DELETE(2);
		private OperationType(int t){
			_type = t;
		}
		
		public int toInt(){
			return _type;
		}
		private int _type;
	};
	
	String description();	//description
	OperationType type();	//type
	String resource();	//resource name
}
